/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mekegi.whoanthro;

/**
 *
 * @author Arsen Abdusalamov <duburlan@gmail.com>
 */
public class ModelBuilder {

	public static final int MODEL_CHILD = 0x0001;
	public static final int MODEL_MEASURE = 0x0002;

	public static IModel factory( int modelName ) {
		switch (modelName) {
			case MODEL_CHILD:
				return new Child();
			case MODEL_MEASURE:
				return new Measure();
			default:
				throw new UnsupportedOperationException(modelName + " is not vaild class name for this builder");
		}
	}
}
